
# grab the triangle from the file
file = open("pe013-data.txt")
numbers = file.readlines()

# convert the list of strings to a list of a list of integers for each line

accumulate = 0
for number in numbers:
    accumulate += int(number) # yay for cheating in python :D

answer = str(accumulate)[:10]

print 'The answer to Problem #13 is >>', answer, '<<'